package day11HomeWork;

import java.util.ArrayList;
import java.util.List;

public class ListDemo1 {
    public static void main(String[] args) {
        List<String> c = new ArrayList<>();
        c.add("one");
        c.add("two");
        c.add("three");
        c.add("four");
        c.add("five");
        String e = c.get(3);
        System.out.println(e);

        c.set(3,"six");
        System.out.println(c);

        c.add(1,"zero");
        System.out.println(c);
        c.remove(3);
        System.out.println(c);






    }
}
